﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TopNews.aspx.cs" Inherits="MedCenters" 
MasterPageFile="~/Admin/MasterPage.master" EnableEventValidation="false" %>

<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="MainContent">
<h1><%=sPageTitle%></h1>
<asp:GridView ID="gvTopNews" runat="server" AutoGenerateColumns="false" CssClass="SiteStats"
        AllowPaging="false" AlternatingRowStyle-CssClass="SiteStatsA" RowStyle-CssClass="SiteStats"
        Width="98%" AllowSorting="false">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="Новость" HeaderStyle-CssClass="StatsHeader"/>
                
            <asp:TemplateField HeaderText="Действие" HeaderStyle-CssClass="StatsHeader">
            <ItemTemplate>
                <asp:ImageButton runat="server" ToolTip="Click to move this row up" ImageUrl="Images/MoveUp.png"
                    ID="btnUp" OnCommand="gvTopNews_ItemCommand" CausesValidation="false" CommandName="MoveUp" CommandArgument='<%# Eval("ID") %>'/>
                <asp:ImageButton runat="server" ToolTip="Click to move this row down" ImageUrl="Images/MoveDown.png" CommandName="MoveDown"
                    ID="btnDown" OnCommand="gvTopNews_ItemCommand" CommandArgument='<%# Eval("ID") %>'/>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>   
</asp:Content>
